package com.wln.sms.sms.feign;

import com.wln.common.utils.R;
import com.wln.sms.sms.vo.GoodsVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("seckill-pms")
public interface GoodsFeignService {

    @RequestMapping("pms/goods/getByGoodsId")
    R getByGoodsId(@RequestParam("goodsId") Long goodsId);
    @RequestMapping("pms/goods/updateByGoodsId")
    R updateByGoodsId(@RequestParam("goodsId") Long s,@RequestParam("goodsCount") Integer goodsCount);
    @RequestMapping("pms/goods/update")
    R update(@RequestBody GoodsVo data);
    @RequestMapping("pms/goods/list")
    R list();
}
